<#assign title= "商品发布api" ><#include '../header.html' />
<!--手册开始-->
<div id="top_nav">
	<h1>标签、API使用手册</h1>
</div>
<!--手册结束-->
<!--正文-->
<div id="main">
<#include 'goods_menu.html' />
	<div class="right_list">
		<h3>add 商品发布API</h3>
		<!--锚点-->
		<div class="anchor">
			<ul>
				<li><a href="#parameter">输入参数</a></li>
				<li><a href="#finally">返回结果</a></li>
				<li><a href="#example">返回示例</a></li>
				<li><a href="#try">API工具</a></li>
			</ul>
		</div>
		<!--锚点结束-->
		<h6>
			<p>发布商品</p>

		</h6>
		<div class="intro">	
					<div class="same">
				<h2>API地址：</h2>
				<table cellspacing="0">
					 
					<tr>
						<td style="text-align:left;padding:10px;font-size:14px">/api/b2b2c/store-goods/add.do</td>
						
					</tr>
				</table>
			</div>
			<div class="same" id="parameter">
				<h2>输入参数</h2>
				<table cellspacing="0">
					<tr>
						<th>名称</th>
						<th>类型</th>
						<th>是否必须</th>
						<th>示例值</th>
						<th>默认值</th>
						<th>描述</th>
					</tr>
					<tr>
						<td>cat_id</td>
						<td>int</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>分类id,如果不输入，则搜索全部的分类下的商品</td>
					</tr>
						<tr>
						<td>type_id</td>
						<td>int</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>商品类型id</td>
					</tr>
					<tr>
						<td>name</td>
						<td>String</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>商品名称</td>
					</tr>
						<tr>
						<td>sn</td>
						<td>int</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>商品编号</td>
					</tr>
						<tr>
						<td>mktprice</td>
						<td>Double</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>市场价格</td>
					</tr>
						<tr>
						<td>price</td>
						<td>Double</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>商品价格</td>
					</tr>
						</tr>
						<tr>
						<td>price</td>
						<td>Double</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>商品价格</td>
					</tr>
						<tr>
						<td>cost</td>
						<td>Double</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>成本价</td>
					</tr>
						<tr>
						<td>weight</td>
						<td>Double</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>商品重量(g)</td>
					</tr>
						<tr>
						<td>haveSpec</td>
						<td>Double</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>有没有规格</td>
						
					</tr>
					<tr>
						<td>intro</td>
						<td>String</td>
						<td></td>
						<td></td>
						<td></td>
						<td>商品描述</td>
					</tr>
						<tr>
						<td>goods_transfee_charge</td>
						<td>int</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>1卖家承担运费，2买家承担运费</td>
					</tr>
					<tr>
						<td>store_cat_id</td>
						<td>int</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>本店分类</td>
					</tr>
					<tr>
						<td>market_enable</td>
						<td>int</td>
						<td>是</td>
						<td></td>
						<td></td>
						<td>1立即发布，0暂不发布</td>
					</tr>
				</table>
			</div>
			<div class="same" id="finally">
				<h2>返回结果</h2>
				<table cellspacing="0">
					<tr>
						<th>名称</th>
						<th>类型</th>
						<th>是否必须</th>
						<th>默认值</th>
						<th class="line">描述</th>
					</tr>
					<tr>
						<td>result</td>
						<td>JSON</td>
						<td>必须</td>
						<td></td>
						<td class="line_intro">如果等于“0”，添加错误，如果等于“1”，那么表示添加成功</td>
					</tr>
				</table>
			</div>
			<div class="same" id="example">
				<h2>返回示例</h2>
				<textarea>{"result":1,"message":"商品添加成功"</textarea>
			</div>
<!-- 			<div class="same" id="try"> -->
<!-- 				<h2>试一试</h2> -->
<!-- 				<a href="${ctx}/docs/b2b2c/api/demo/addStoreGoods.html" target="_blank">亲自试一试</a> -->
<!-- 			</div> -->
		</div>
	</div>
</div>
<#include '/docs/fooder.html' />

<!--正文结束-->
</body>
</html>








